]> dgit.raspbian.org Git - gnome-shell.git/commit
shell/app: Correctly track the window used for the fallback icon
authorBenjamin Berg <bberg@redhat.com>
Wed, 15 Dec 2021 15:03:52 +0000 (16:03 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 21 Dec 2021 14:34:38 +0000 (14:34 +0000)
commit1807be1277f0895898c5e26ec72a75f4a4cafce4
treed93ddfcab941493405c4e420d9c21d0cf151b036
parent5106ca929118ef2e981b030338cde225ad008dd8
shell/app: Correctly track the window used for the fallback icon

We were not properly tracking the window used for the fallback icon.
This could trigger a crash, as disconnection of the signal handler might
happen on the wrong window, which in turn could cause the icon change
notification to happen on a destroyed ShellApp instance.

Fix this by tracking the window used for the fallback icon. Disconnect
the icon notify callback explicitly for this window only when it is
removed.

Also, just to be extra safe, make sure that the icon is never NULL even
if x11_window_create_fallback_gicon should return NULL for some reason.

Closes: #4436
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2065>
src/shell-app.c